import request from '@/utils/request'
//列表
export  function list(query){
    return request({
        url:"/loan/userLoanUrge/overdueList",
        method: 'post',
        data:query
    })
}
//新增
export  function add(query){
    return request({
        url:"/auth/shortMsg/addShortMsg",
        method:"post",
        data:query
    })
}
//查看
export  function detail(id){
    return request({
        url:"/loan/userLoanUrge/queryLoanInfo/"+id,
        method:"get"
    })
}

//删除
export  function del(id){
    return request({
        url:"/auth/shortMsg/delShortMsg/"+id,
        method:"post"
    })
}


// 催收代办l
export function collection(data) {
    return request({
        url: "/loan/userLoanUrge/addUrgePayment",
        method: "post",
        data
    })
}
//批量删除
export function batchDel(data) {
    return request({
        url: "/auth/shortMsg/batchDel",
        method: "post",
        data
    })
}